package org.kele.asyncservlet.bean;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExHandle {

    @ExceptionHandler(RuntimeException.class)
    public String handleRuntime(RuntimeException exception){
        return exception.getLocalizedMessage();
    }
}
